package thread09.thread;

class MyRunnable implements Runnable
{
	private String name;
	
	public MyRunnable()
	{
		
	}
	public MyRunnable(String name)
	{
		super();
		this.name = name;
	}

	public void run()
	{
		for(int i=0;i<10;i++)
		{
			System.out.println(name+"="+i);
		}
	}
}
public class ThreadDemo02
{


	public static void main(String[] args)
	{
		MyRunnable mt1 = new MyRunnable("A");
		MyRunnable mt2 = new MyRunnable("B");
		new Thread(mt1).start();
		//mt1.start();
		new Thread(mt2).start();
	}

}
